package sv.gob.mh.dgii.dao.rc;

import java.sql.SQLException;
import org.springframework.stereotype.Repository;
import sv.gob.mh.dgii.dao.hibernate.HibernateDaoNoCrudImpl;

@Repository
public class RcTerminoNitDaoImpl extends HibernateDaoNoCrudImpl implements RcTerminoNitDao {
		
	public void terminarNit(String nit, String tipoGestion, String folio, String usuario, String unidadRecep, String adminTrib) throws SQLException {		
		Object[] params = new Object[]{nit, tipoGestion, folio, unidadRecep ,adminTrib, usuario };
		String function = "call pkg_ruc_procesos.terminar_nit(?,?,?, ?,?,? )";
		getJdbcHelper().executeProcedure(function, params);
	}
	
}
